import request from '@/utils/request'

// 查询hello列表
export function listHello(query) {
  //alert('listHello调用，现在开始调用后端');
  return request({
    url: '/system/hello/list',
    method: 'get',
    params: query
  })
}

// 查询hello详细
export function getHello(id) {
  //alert('getHello调用');
  return request({
    url: '/system/hello/' + id,
    method: 'get'
  })
}

// 新增hello
export function addHello(data) {
  return request({
    url: '/system/hello',
    method: 'post',
    data: data
  })
}

// 修改hello
export function updateHello(data) {
  return request({
    url: '/system/hello',
    method: 'put',
    data: data
  })
}

// 删除hello
export function delHello(id) {
  return request({
    url: '/system/hello/' + id,
    method: 'delete'
  })
}
